﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace _8Group.MES.Model.WM仓储管理
{
    /// <summary>
    /// 装箱单表
    /// </summary>
    public class WM_Package : Entity<int>
    {


        /// <summary>
        /// 父装箱单ID
        /// </summary>
        public int ParentId { get; set; } = 0;

        /// <summary>
        /// 所有父箱ID
        /// </summary>
        public string Ancestors { get; set; }

        /// <summary>
        /// 装箱单编号
        /// </summary>
        public string PackageCode { get; set; }

        /// <summary>
        /// 条码ID
        /// </summary>
        public int? BarcodeId { get; set; }

        /// <summary>
        /// 条码内容
        /// </summary>
        public string BarcodeContent { get; set; }

        /// <summary>
        /// 条码图片的存储路径
        /// </summary>
        public string BarcodeUrl { get; set; }

        /// <summary>
        /// 装箱日期
        /// </summary>
        public DateTime PackageDate { get; set; }

        /// <summary>
        /// 发票编号
        /// </summary>
        public string InvoiceCode { get; set; }

        /// <summary>
        /// 销售订单编号
        /// </summary>
        public string SoCode { get; set; }

        /// <summary>
        /// 客户ID
        /// </summary>
        public int? ClientId { get; set; }

        /// <summary>
        /// 客户编号
        /// </summary>
        public string ClientCode { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public string ClientName { get; set; }

        /// <summary>
        /// 箱长度
        /// </summary>
        public double? PackageLength { get; set; }

        /// <summary>
        /// 箱宽度
        /// </summary>
        public double? PackageWidth { get; set; }

        /// <summary>
        /// 箱高度
        /// </summary>
        public double? PackageHeight { get; set; }

        /// <summary>
        /// 长度单位
        /// </summary>
        public string SizeUnit { get; set; }

        /// <summary>
        /// 净重
        /// </summary>
        public double? NetWeight { get; set; }

        /// <summary>
        /// 毛重
        /// </summary>
        public double? CrossWeight { get; set; }

        /// <summary>
        /// 重量单位
        /// </summary>
        public string WeightUnit { get; set; }

        /// <summary>
        /// 检查员
        /// </summary>
        public string Inspector { get; set; }

        /// <summary>
        /// 检查员名称
        /// </summary>
        public string InspectorName { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public char EnableFlag { get; set; } = 'Y';

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
